package com.ruoyi.project.init.service;

import com.ruoyi.project.init.mapper.InitMapper;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 功能更新，初始化sql
 */
@Service
public class InitService {

    @Resource
    private InitMapper initMapper;

    @PostConstruct
    public void init() {
        try {
            initMapper.updateAccountClass();
        } catch (Exception e) {
           e.printStackTrace();
        }
    }
}
